package com.liu.sx.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "t_task")
public class Task {

    @Id
    private String id;

    private String address;

    private Integer command;

    private String data;

    private Integer status;

    private  String userid;

    private Date createTime;

    @Override
    public String toString() {
        return "Task{" +
                "id='" + id + '\'' +
                ", address='" + address + '\'' +
                ", command=" + command +
                ", data='" + data + '\'' +
                ", status=" + status +
                ", userid='" + userid + '\'' +
                '}';
    }
}
